CREATE EXTERNAL TABLE IF NOT EXISTS spmi_ods.spmi_piece_network_relation_preview(
id                                                 bigint                         COMMENT '主键ID',
piece_fee_id                                       bigint                         COMMENT '派件费ID',
networkgroup_id                                    bigint                         COMMENT '寄件网点分组ID'
)
COMMENT '派件费明细-寄件网点关系表'
PARTITIONED BY (dt STRING COMMENT '拉取日期 (yyyy-MM-dd)')
STORED AS PARQUET
LOCATION '/dw/hive/spmi_ods.db/external/spmi_piece_network_relation_preview'
TBLPROPERTIES (
  'parquet.column.index.access'='true'
);